package com.gt.admin.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 二级目录
 */
@TableName("sc_menu_second")
@Data
@ApiModel(value = "第二层目录")
public class MenuSecond {
    @TableId(type = IdType.AUTO)
    private Long menuId;

    @ApiModelProperty(value = "目录名称")
    private String menuName;

    @ApiModelProperty(value = "一级目录id")
    private Long firstId;

    @ApiModelProperty(value = "父级id")
    private Long parentId;

    @ApiModelProperty(value = "显示顺序")
    private Long sort;

    @ApiModelProperty(value = "目录层级")
    private Long level;

    @ApiModelProperty(value = "路径")
    private String path;

    @ApiModelProperty(value = "标识")
    private Long version;

    @ApiModelProperty(value = "子级目录")
    @TableField(exist = false)
    private List<MenuSecond> childList = new ArrayList<>();


}
